﻿<%@ Page Title="" Language="C#" MasterPageFile="../Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Longtop.Web.WebSite.Admin.Roles.CreatePermissionModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<%=Model.OperateMessage %>
    <%= Html.ValidationSummary("Edit was unsuccessful. Please correct the errors and try again.") %>
    <% using (Html.BeginForm()) {%>
    <fieldset>
        <%=Html.HiddenFor(m=>m.Role.Rolename) %>
        <legend>为 [<%=Model.Role.Rolename %>] 分配权限</legend>
        <p>
            <label for="content">
            </label>
            <%= Html.EditorFor(m => m, "PermissionsSelector")%>
            <%= Html.ValidationMessageFor(m=>m.Permissions)%>
        </p>
        <p>
        </p>
    </fieldset>
    <div>
        <%=Html.SubmitButton("save","保存",new{Class="button"}) %>
        <%=Html.Button("save", "返回", HtmlButtonType.Button, "self.location.href='"+Url.Action("list")+"';", new { Class = "button"})%>
    </div>
    <% } %>
</asp:Content>
